package com.zdy.widget;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.widget.ContentLoadingProgressBar;

/**
 * Created by zdy on 2016/9/13.
 */
public class CustomProgressDialog extends Dialog {
    public CustomProgressDialog(Context context) {
        super(context, R.style.DialogTheme);
        init();
    }

    public CustomProgressDialog(Context context, int themeResId) {
        super(context,  R.style.DialogTheme);
        init();
    }

    protected CustomProgressDialog(Context context, boolean cancelable, OnCancelListener cancelListener) {
        super(context, cancelable, cancelListener);
        init();
    }

    private ContentLoadingProgressBar loadingProgressBar;

    void init() {
        setContentView(R.layout.layout_dialog);
        loadingProgressBar = (ContentLoadingProgressBar) findViewById(R.id.loading);
    }

}
